// AskTSAPIPpg.cpp : Implementation of the CAskTSAPIPropPage property page class.

#include "stdafx.h"
#include "AskTSAPI.h"
#include "AskTSAPIPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CAskTSAPIPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CAskTSAPIPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CAskTSAPIPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CAskTSAPIPropPage, "ASKTSAPI.AskTSAPIPropPage.1",
	0x8e7a999e, 0xaceb, 0x41fa, 0xab, 0xe4, 0x9f, 0x4d, 0x90, 0xbe, 0xa1, 0x91)


/////////////////////////////////////////////////////////////////////////////
// CAskTSAPIPropPage::CAskTSAPIPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CAskTSAPIPropPage

BOOL CAskTSAPIPropPage::CAskTSAPIPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_ASKTSAPI_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CAskTSAPIPropPage::CAskTSAPIPropPage - Constructor

CAskTSAPIPropPage::CAskTSAPIPropPage() :
	COlePropertyPage(IDD, IDS_ASKTSAPI_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CAskTSAPIPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CAskTSAPIPropPage::DoDataExchange - Moves data between page and properties

void CAskTSAPIPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CAskTSAPIPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CAskTSAPIPropPage message handlers
